git repack
Pack unpacked objects in a git repository. More information: https://git-scm.com/docs/git-repack.
git repack -d